package day6.pet;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest2 {
    public static void main(String[] args) {
       Dog d=new Dog("小花花",66,77,"公","牧羊犬");
       d.print();
       Pet p=d;//d也是个Pet对象。。。
        //pet的构造方法
       p.print();

       //System ss=new System();
    }
}
